<?php 
	$linkLoadAbout = $this->cmsUrl(array(
										'module' => 'default',
										'controller' => 'index',
										'action' => 'tabs-panel',
									));
	$linkLoadAddEvents = $this->cmsUrl(array(
										'module' => 'default',
										'controller' => 'index',
										'action' => 'add-events',
									));

?>
<a href="<?php echo $linkLoadAbout?>" id="load-about" class="font-size-20 fancybox.ajax">ABOUT</a>

<a href="<?php echo $linkLoadAddEvents?>" id="load-connect" class="font-size-20 fancybox.ajax">CONNECT</a>
<script>

	$(function(){
		$('#load-about, #load-connect').fancybox({
							maxWidth	: '850',
							minWidth	: '240',
							scrolling	: 'yes'
							});
        <?php
        if(@$this->arrParam['show']=='about'){
        ?>
        $('#load-about, #load-connect').click(function(){
            $.fancybox({
                maxWidth	: '850',
                minWidth	: '240',
                scrolling	: 'yes'
            });
        });
        $( "#load-about" ).trigger( "click" );
        <?php }

         if(!empty($this->arrParam['show'])){
         ?>
        $.get("/index/event-finish", function(data){
            $.fancybox({
                maxWidth	: '850',
                minWidth	: '240',
                scrolling	: 'yes',
                content : data
            })
        });
        <?php
         }
         ?>


	});

</script>